/**
 * crawler
 *
 * outlook@China software studio
 * Copyright (c) 2008-2010. All Rights Reserved.
 * http://www.outlook.com
 */

package org.outlook.common.cachelet;

/**
 * function:
 * @author Watson email: watson.wu@hotmail.com
 * @date 2011
 */
public class Cachelet {
    private String key;//缓存ID
    private Object value;//缓存数据
    private long timeOut;//更新时间
    private boolean expired; //是否终止
    public Cachelet() {
            super();
    }

    public Cachelet(String key, Object value, long timeOut, boolean expired) {
            this.key = key;
            this.value = value;
            this.timeOut = timeOut;
            this.expired = expired;
    }

    public String getKey() {
            return key;
    }

    public long getTimeOut() {
            return timeOut;
    }

    public Object getValue() {
            return value;
    }

    public void setKey(String string) {
            key = string;
    }

    public void setTimeOut(long l) {
            timeOut = l;
    }

    public void setValue(Object object) {
            value = object;
    }

    public boolean isExpired() {
            return expired;
    }

    public void setExpired(boolean b) {
            expired = b;
    }
}
